package com.kk.base.controller.home;

import com.kk.base.service.home.ExpressMailOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/home")
@Controller
public class HomeIndexController {

    @Autowired
    private ExpressMailOrderService expressMailOrderService;


    @RequestMapping("/index")
    public String index(Model model){
        model.addAttribute("packages",expressMailOrderService.countByOrderStatus());
        return "home/index/home_index";
    }

}
